﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Model
{

    [MetadataType(typeof(Sys_Organizations_Metadata))]
    [DisplayName("组织架构")]
    public partial class Sys_Organizations
    {
        public Sys_Organizations()
        {
            this.Id = Guid.NewGuid();
        }

        public class Sys_Organizations_Metadata
        {
            [ScaffoldColumn(false)]
            public System.Guid Id { get; set; }

            [DisplayName("企业名称")]
            [DropDownList("Sys_Enterprise", "Id", "EnterpriseName")]
            public object EnterpriseId { get; set; }

            [DisplayName("部门名称")]
            [Required]
            public object Department { get; set; }

            [DisplayName("部门编码")]
            [Required]
            public object DepartmentCode { get; set; }

            [DisplayName("备注说明")]
            [Required]
            public object Remarks { get; set; }

            [DisplayName("系统编码")]
            [Required]
            public object SystemCode { get; set; }

        }
    }
}
